package cn.bjc.system.domain;

import cn.bjc.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类-角色
 */
@Data
public class Role extends BaseDomain {
    
    //角色名
    private String name;
    
    private String sn;
    
    //接收前端传来的菜单id
    private List<Long> menus = new ArrayList<>();

    //接收前端传来的权限id
    private List<Long> permissions = new ArrayList<>();

    //做菜单回显加这个参数
    private List<Menu> ownMenus = new ArrayList<>();
}
